package br.com.drestranho.escola.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="turma", schema="public")
public class Turma implements Serializable {
	@Id
	@SequenceGenerator(name="seq_turma", sequenceName="seq_turma", allocationSize=1)
	@GeneratedValue(generator="seq_turma", strategy=GenerationType.SEQUENCE)
	@Column(name="id")
	Integer id;
	@Column(name="serie")
	Integer serie;
	@Column(name="digito")
	String digito;
	@Column(name="sala")
	Integer sala;
	@Column(name="ano")
	Integer ano;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getSerie() {
		return serie;
	}
	public void setSerie(Integer serie) {// formato:1-9
		this.serie = serie;
	}
	public String getDigito() {
		return digito;
	}
	public void setDigito(String digito) {// formato: A-Z
		this.digito = digito;
	}
	public Integer getSala() {
		return sala;
	}
	public void setSala(Integer sala) {
		this.sala = sala;
	}
	public Integer getAno() {
		return ano;
	}
	public void setAno(Integer ano) {// formato:YYYY
		this.ano = ano;
	}

}
